<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <meta c>
  <style>
    .main{
      width: 300px;height: 100px;
      display: flex;
      flex-direction: column;
      align-items: center;
      align-content: center;
      justify-content: center;
      margin: auto;
        padding: 20px;
    }
  </style>
</head>
<body th:object="${user}">
<div class="error" style="margin: 20px 0px;text-align: center">
    <div th:each="error:${#fields.errors()}" th:text="${error}"></div>
</div>
<div class="main">
    <form action="/reg.html" method="post">
      <label>账号：</label> <input id="username" name="username" type="text"><br>
      <label>昵称：</label> <input id="nickname" name="nickname" type="text"><br>
      <label>密码：</label> <input id="pwd" name="pwd" type="password"><br>
        <input name="age" type="hidden" value="180">
      <button type="submit">注册</button>
    </form>
</div>
<center style="color: red">
    <h6 class="msg" th:text="${msg}"></h6>
<!--    <h6 class="msg">[[${msg}]]</h6>-->
</center>
</body>
</html>
